package com.lanju.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lanju.dao.ContractJobDao;
import com.lanju.entity.Contract;
import com.lanju.entity.ZukeContract;
import com.lanju.service.ContractJobService;

@Service
public class ContractJobServiceImpl implements ContractJobService{

	@Autowired
	ContractJobDao contractDao;
	
	@Override
	public List<Contract> getContractUserList(String day) {
		Map<String,Object> map = new HashMap<>();
		try {
			map.put("contractEndTime", day);
			return contractDao.getContractJob(map);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	@Override
	public List<ZukeContract> getZuKeContractJob(String day) {
		Map<String,Object> map = new HashMap<>();
		try {
			map.put("contractEndTime", day);
			return contractDao.getZuKeContractJob(map);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	


}
